package last.tomsquare;

import friend.content.*;
import common.totalInfo.*;
import android.app.*;
import android.content.*;
import android.graphics.drawable.*;
import android.os.Bundle;
import android.view.*;
import android.widget.*;
import android.widget.LinearLayout.LayoutParams;

public class MenuButton extends TabActivity 
{
	TabHost mTab;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) 
	{
	    super.onCreate(savedInstanceState);
	    
	   
	    TabHost tabHost = getTabHost();
	    
	   
	    //tabHost.setLayoutParams(params);
	    
	    Drawable friendIcon = getResources().getDrawable(R.drawable.btnfriends);
	    Drawable exIcon = getResources().getDrawable(R.drawable.btnex);
	    Drawable placeIcon = getResources().getDrawable(R.drawable.btnplace);
	    Drawable todoIcon = getResources().getDrawable(R.drawable.btntodo);
	    Drawable meIcon = getResources().getDrawable(R.drawable.btnme);
	    
	    
	   
	    
	    tabHost.addTab(tabHost.newTabSpec("tag")
	    		.setIndicator("Friends",friendIcon)
	    		.setContent(new Intent(this, friend.content.Friends.class)));
	    
	    tabHost.addTab(tabHost.newTabSpec("tag")
	    		.setIndicator("Explore",exIcon)
	    		.setContent(new Intent(this, Explore.class)));
	    
	    tabHost.addTab(tabHost.newTabSpec("tag")
	    		.setIndicator("Place",placeIcon)
	    		.setContent(new Intent(this, Place.class)));
	    
	    tabHost.addTab(tabHost.newTabSpec("tag")
	    		.setIndicator("To-Do",todoIcon)
	    		.setContent(new Intent(this, ToDo.class)));
	    
	    tabHost.addTab(tabHost.newTabSpec("tag")
	    		.setIndicator("Me",meIcon)
	    		.setContent(new Intent(this, Me.class)));
	  
	    tabHost.getTabWidget().getLayoutParams().height = 58;
	}
}


